<!--{template admin/header_tpl}-->

<div class="mainarea">
	<div class="maininner">
		<div class="tabs_header">
			<ul class="tabs">
				<li><a href="<!--{eval echo base_url()}-->admin/admin_goods/index/{$aid}"><span>浏览商品</span></a></li>
				<li class="null"><a href="<!--{eval echo base_url()}-->admin/admin_goods/add_goods/{$aid}">添加商品</a></li>
				<li class="null"><a href="<!--{eval echo base_url()}-->admin/admin_activity/index">返回活动主页</a></li>
			</ul>
		</div>
		<div class="bdrcontent">
			<div class="title"><h3>ID：{$activity[aid]}&nbsp;&nbsp;{$activity[title]}</h3></div>
			<p><img width="590" src="{$activity[act_img]}" /></p>
		</div>
		<br />
<!--加载数据-->
		<form action="<!--{eval echo base_url()}-->admin/admin_goods/deletes" method="post" accept-charset="utf-8">

			<div class="bdrcontent">
				<table class="formtable" cellspacing="5" cellpadding="5">
						<th style="width:2em;">id</th>
						<th style="width:100px;">活动</th>
						<th>品牌</th>
						<th>分类</th>
						<th>描述</th>
						<th>价格</th>
						<th>创建时间</th>
						<th>操作</th>
						<!--{loop $goods $good}-->
						<tr>
							<td>{$good[gid]}
								<input type="checkbox" name="ids[]" value="{$good[gid]}" id="" value="{$good[gid]}">
							</td>
							<td>
								 <a href="{$good[url]}"><img src="{$good[goods_img]}" width="100"></a>
							</td>
							<td>
								<!--{if $good[brandid]}-->
									{$brands[$good[brandid]][name]}
								<!--{else}-->
									未选择
								<!--{/if}-->
							</td>
							<td>{$good[catname]}</td>
							<td>
							标题:{$good[name]}<br />
							折扣:{$good['discount']}元<br />
							市场价格:{$good['marketprice']}元<br />
							</td>
							<td>{$good['price']}元</td>
							<td><!--{date('Y-m-d H:i:s', $good['dateline'])}--></td>
							<td><a href="<!--{eval echo base_url()}-->admin/admin_goods/edit_goods/{$good['gid']}">编辑</a>　| <a href="<!--{eval echo base_url()}-->admin/admin_goods/delete/{$good['gid']}/{$aid}" onclick="return confirm('本操作不可恢复，确认删除？');">删除</a></td>
						<tr>
						<!--{/loop}-->
					</tr>
				</table>
			</div>
			<input type="hidden" name="aid" value="{$aid}" id="aid">
		<!--分页表单和删除按钮-->
			<div class="footactions">
				<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选
				<input type="submit" name="batchsubmit" value="批量删除" onclick="return confirm('本操作不可恢复，确认删除？');" class="submit">
				<div class="pages">{$multi}</div>
			</div>
		</form>
	</div>
</div>
<div class="side">
	<!--{template admin/side}-->
</div>

<!--{template admin/footer_tpl}-->